package com.example.user_service.otherservice;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
@FeignClient(name = "ORDERFORMSERVICE")
public interface OrderService
{
    @RequestMapping("/taiocha")
    int taiocha(@RequestParam(value = "userid",required = false)int userid);

    @ApiOperation("带评价的条数")
    @RequestMapping("/taiochass")
    public int taiochass(@RequestParam("userid") int userid);

}
